﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Fjaspx.UI.Web.Administrator_class_index" Codebehind="index.aspx.cs" %>
<%@ Register src="../top.ascx" tagname="top_help" tagprefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无限级分类</title>

	<link rel="stylesheet" type="text/css" href="/administrator/WebUI/subModal/style.css" />
	<link rel="stylesheet" type="text/css" href="/administrator/WebUI/subModal/subModal.css" />
	<script type="text/javascript" src="/administrator/WebUI/subModal/common.js"></script>
	<script type="text/javascript" src="/administrator/WebUI/subModal/subModal.js"></script>
</head>
<script type="text/javascript">
    function ChkInput()
    {
        if(document.getElementById("txtClassName").value=="")
        {
            alert("栏目名称不能为空！");
            document.getElementById("txtClassName").focus();
            return false;
        }
    }
    </script>
<link href="/administrator/images/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
body, td {
	font-size:12px;
}
a {
	color:#000;
}
.main_table {
	width:100%;
	padding:2px;
	border:1px solid #E7E7E7;
}
.td_title {
	height:25px;
	line-height:25px;
	background:#EEF7FD;
	color:#135294;
	font-weight:bold;
}
.td_on {
	background:#fafafa;
}
.td_off {
	background:#EEF7FD;
}
#form1 table tr td table tr td #rptMenuList headertemplate .td_title td {
	font-weight: normal;
}
</style>
<body>
<form id="form1" runat="server">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><uc1:top_help ID="top_help2" runat="server" /></td>
    </tr>
  </table>
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="5">
    <tr>
      <td><table width="100%" border="0" cellspacing="5" cellpadding="0">
          <tr>
            <td><table cellpadding=0 cellspacing=1 border=0 align="center" width="100%">
                <tr>
                  <td></td>
                </tr>
                <tr>
                  <td valign="top">
                  <table class="main_table" cellpadding="0" cellspacing="1" border="0" width="100%">
                      <tr align="center" class="td_title">
                        <td width="53%" align="left" class="enfont2">&nbsp;栏目分类管理</td>
                        <td width="47%" align="right" nowrap>
                       <input name="" type="button" style="display:none;">
<asp:Button CssClass="bt" Font-Bold="true"  ID="Btn_add" runat="server" Text=" 增加顶级栏目 " Width="92" 
                                Height="22" onclick="Btn_add_Click" />                 
<asp:Button CssClass="bt" Font-Bold="true"  ID="Btn_huancun" runat="server" Text=" 更新栏目缓存 " Width="92" Height="22" />
&nbsp;&nbsp; </td>
                      </tr>
                      <tr align="center" class="td_title" height="23">
                        <td colspan="2" align="left" bgcolor="#FAFAFA" class="enfont2" ><img src=/administrator/images/lightbulb_add.png width="16" height="16" border="0"> 提示：操作注意事项。</td>
                      </tr>
                      <asp:Repeater ID="rptMenuList" runat="server" OnItemDataBound="rptMenuList_ItemDataBound" onitemcommand="rptMenuList_ItemCommand">
                        <ItemTemplate>
                          <tr  onmouseover="this.style.background='#EEF7FD'"  onmouseout="this.style.background='#fafafa'" class='<%#Convert.ToInt32(Eval("ClassTj"))==1?(Eval("ClassList").ToString().Replace(",","")):(Eval("ClassList").ToString().Substring(0, Eval("ClassList").ToString().IndexOf(",")) + "_sub") %>'  onclick="$('.<%#Convert.ToInt32(Eval("ClassTj"))==1?(Eval("ClassList").ToString().Substring(0, Eval("ClassList").ToString().IndexOf(",")) + "_sub"):"00" %>').toggle(); " >
                            <td nowrap><asp:CheckBox ID="CheckBoxId" runat="server" />
                              <a  href='edit.aspx?Id=<%#DataBinder.Eval(Container.DataItem,"Id") %>&ClassId=<%#DataBinder.Eval(Container.DataItem,"ClassId") %>&ClassKind=<% =ClassKind %>&ClassPre=<%#DataBinder.Eval(Container.DataItem,"ClassPre") %>'></a>
                              <asp:HiddenField ID="txtClassId" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"ClassId") %>' />
                              <asp:Literal ID="LitFirst" runat="server"></asp:Literal>
                              <a rel="facebox" href='sum.aspx?Id=<%#DataBinder.Eval(Container.DataItem,"Id") %>&ClassId=<%#DataBinder.Eval(Container.DataItem,"ClassId") %>'>
             <asp:Label ID="LabClassNm" runat="server" Text=' <%#DataBinder.Eval(Container.DataItem,"ClassName")%> '></asp:Label>
             </a>
                              <%#" [ID:"+ DataBinder.Eval(Container.DataItem,"Id").ToString()+"]"%> 
                              <a  href='edit.aspx?Id=<%#DataBinder.Eval(Container.DataItem,"Id") %>&ClassId=<%#DataBinder.Eval(Container.DataItem,"ClassId") %>&ClassKind=<% =ClassKind %>&ClassPre=<%#DataBinder.Eval(Container.DataItem,"ClassPre") %>'> 
                              <img src=/administrator/images/wand.png width="16" height="16" border="0">
                            </a></td>
                            <td align="right" nowrap>
                              <a rel="facebox" href='sum.aspx?Id=<%#DataBinder.Eval(Container.DataItem,"Id") %>&ClassId=<%#DataBinder.Eval(Container.DataItem,"ClassId") %>'> 预览</a> 
                            | <a class="submodal-360-260" href='../NewHtml/NewList.aspx?Id=<%#DataBinder.Eval(Container.DataItem,"Id") %>&ClassId=<%#DataBinder.Eval(Container.DataItem,"ClassId") %>&ClassKind=<% =ClassKind %>' > 生成</a> 
                            | <a  href='../objet/add.aspx?Class=<%#DataBinder.Eval(Container.DataItem,"Id") %>&ClassKind=<% =ClassKind %>'> 发布文章</a>
                            | <a  href='add.aspx?ClassId=<%#DataBinder.Eval(Container.DataItem,"ClassId") %>&ClassKind=<% =ClassKind %>'> 添加子类</a>
                            | <a  href='edit.aspx?Id=<%#DataBinder.Eval(Container.DataItem,"Id") %>&ClassId=<%#DataBinder.Eval(Container.DataItem,"ClassId") %>&ClassKind=<% =ClassKind %>&ClassPre=<%#DataBinder.Eval(Container.DataItem,"ClassPre") %>'> 编辑</a>
                            | <asp:LinkButton ID="BtnDelete" CommandName="BtnDelete" runat="server" OnClientClick="return confirm('你确定要删除吗')">删除</asp:LinkButton>
                            | <a rel="facebox" href='Class_Form.aspx?id=<%#DataBinder.Eval(Container.DataItem,"Id") %>&class_id=<%#DataBinder.Eval(Container.DataItem,"ClassId") %>&classkind=<% =Request["classkind"]%>'>配置</a>
                            &nbsp;
                            <asp:TextBox CssClass="input" ID="txtOrder" Height="18" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"ClassOrder") %>' Width="26"></asp:TextBox>
                            &nbsp;&nbsp;&nbsp;&nbsp;</td>
                          </tr>
                        
                        </ItemTemplate>
                      </asp:Repeater>
                      <tr class="td_on" onMouseOver="this.className='td_off'" onMouseOut="this.className='td_on'" bgcolor="#E7E7E7">
                        <td height="40" align="left"><asp:CheckBox ID="CheckBoxAll" runat="server" Text="全选" /><asp:CheckBox ID="CheckBoxAllNo" runat="server" Text="全取消" /></td>
                        <td height="40" align="right" nowrap>
                          <asp:Button CssClass="bt" Font-Bold="true"  ID="Btn_all_del" runat="server" Text=" 批量删除栏目 " Width="92" 
                                Height="22"  />
                        
                        <asp:Button CssClass="bt" Font-Bold="true"  ID="Btn_add_two" runat="server" Text=" 增加顶级栏目 " Width="92" 
                                Height="22" onclick="Btn_add_Click" />
                        
                        <asp:Button CssClass="bt" Font-Bold="true"  ID="BtnSave" runat="server" Text=" 更新栏目顺序 " Width="92" Height="22" OnClick="BtnSave_Click" />
                        &nbsp;&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
                <tr>
                  <td align="right">&nbsp;</td>
                </tr>
              </table></td>
          </tr>
        </table></td>
  </table>
</form>
</body>
</html>
